You are here: Statements and Functions > Pause
Syntax samples
PAUSE {<string expression>}
PAUSE
PAUSE "Var1 =" $ Var1
PAUSE "Reached the midpoint of the simulation."
Pauses the simulation and optionally displays a message at some point of interest. This pause allows the user to examine the system in detail. An information dialog box will appear on the animation screen when the pause occurs. The simulation will continue only when the user selects Resume Simulation from the Simulation menu.
Any logic.
Components
<string expression>
The optional message to display.
Example
The simple example below pauses the simulation after the 100th EntA has been processed at Loc1. The purpose for doing this might be to view the current state of the system at this particular point in time.
Process Table
Entity |
Location |
Operation (min) |
---|---|---|
EntA |
Loc1 |
WAIT N(3.2,.1) INC Total IF Total >= 100 THEN PAUSE |
Routing Table
Blk |
Output |
Destination |
Rule |
Move Logic |
---|---|---|---|---|
1 |
EntA |
Loc2 |
FIRST 1 |
|
STOP, DISPLAY, and PROMPT.